package hs.bank.Web.Form;

import lombok.AllArgsConstructor;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

@Data
@AllArgsConstructor
public class LoginForm {
    @NotBlank(message = "Username cannot be empty!")
    private String username;

    @NotBlank
    @Min(6)
    private String password;

    private String loginFailedMessage = "";

    public LoginForm() {
    }
}
